package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.SysContractMoney;
import com.ruoyi.system.mapper.SysContractMoneyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysPurchaseContractMapper;
import com.ruoyi.system.domain.SysPurchaseContract;
import com.ruoyi.system.service.ISysPurchaseContractService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-20
 */
@Service
public class SysPurchaseContractServiceImpl implements ISysPurchaseContractService 
{
    @Autowired
    private SysPurchaseContractMapper sysPurchaseContractMapper;
    @Autowired
    private SysContractMoneyMapper sysContractMoneyMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param itemNo 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysPurchaseContract> selectSysPurchaseContractById(String itemNo)
    {
        return sysPurchaseContractMapper.selectSysPurchaseContractById(itemNo);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param sysContractMoney 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysPurchaseContract(SysContractMoney sysContractMoney) {
        return sysContractMoneyMapper.insertSysContractMoney(sysContractMoney);
    }


    /**
     * 修改【请填写功能名称】
     * 
     * @param sysContractMoney 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysPurchaseContract(SysContractMoney sysContractMoney)
    {
        sysContractMoney.setUpdateTime(DateUtils.getNowDate());
        return sysContractMoneyMapper.updateSysContractMoney(sysContractMoney);
    }

    @Override
    public Long insertFileUpload(SysContractMoney sysContractMoney) {

        return sysContractMoneyMapper.insertFileUpload(sysContractMoney);
    }

    @Override
    public Long uploadPFile(SysContractMoney sysContractMoney) {
        return sysContractMoneyMapper.uploadPFile(sysContractMoney);
    }


}
